package com.neo.impatient.C02_flowControl.C02_11_lazyValue

object LazyTest {




  def main(args: Array[String]): Unit = {


    /**
      * 当val被声明为lazy时，它的初始化将被推迟，直到我们首次对它取值
      */
    lazy  val words = scala.io.Source.fromFile("D:\\root\\code\\scala\\tmp\\lazy.txt").mkString




    printf(words)
  }
}
